package com.tarry.shop.constant;

/**
 * 正则表达式常量
 * @author tarry
 * @date 2021-11-23
 */
public class RegexpConstant {
    private RegexpConstant(){}

    /**
     * 手机号
     */
    public static final String PHONE_REGEXP = "^[1][3,4,5,6,7,8,9][0-9]{9}$";

    /**
     * 邮箱
     */
    public static final String EMAIL_REGEXP = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";
}
